import http from "@/utils/vmeitime-http/index.js";
export const getAddressList = (data) => http.get("/applet_shop/address/list", data);
export const addAddress = (data) => http.post("/applet_shop/address/add", data);
export const editAddress = (data) => http.post("/applet_shop/address/edit", data);
export const delAddress = (data) => http.post("/applet_shop/address/del", data);
export const getAddressDetail = (data) => http.get("/applet_shop/address/info", data);
export const setDefaultAddressApi = (data) => http.post("/applet_shop/address/setDefault", data);
// 获取默认地址
export const getDefaultAddressApi = (data) => http.post("/applet_shop/address/getDefault", data);



// C端用户地址列表
export const getAddressListForC = (data) => http.get("/applet_shop/owner/address/list", data);
export const addAddressForC  = (data) => http.post("/applet_shop/owner/address/add", data);
export const editAddressForC  = (data) => http.post("/applet_shop/owner/address/edit", data);
export const delAddressForC  = (data) => http.post("/applet_shop/owner/address/del", data);
export const getAddressDetailForC  = (data) => http.get("/applet_shop/owner/address/info", data);
export const setDefaultAddressApiForC  = (data) => http.post("/applet_shop/owner/address/setDefault", data);
// 获取默认地址
export const getDefaultAddressApiForC  = (data) => http.post("/applet_shop/owner/address/getDefault", data);